package com.mydemo.likedy.Service;

import com.mydemo.likedy.pojo.dto.EmailDTO;
import com.mydemo.likedy.pojo.dto.FindPasswordDTO;
import com.mydemo.likedy.pojo.dto.RegisterDTO;
import com.mydemo.likedy.pojo.dto.UserDTO;
import com.mydemo.likedy.pojo.entity.User;
import jakarta.servlet.http.HttpServletResponse;

import java.io.IOException;

public interface UserLoginService {
    User userLogin(UserDTO userDTO);

    void captcha(String uuId, HttpServletResponse response) throws IOException;


    boolean validate(EmailDTO emailDTO);

    boolean checkCode(String email, Integer code);

    boolean register(RegisterDTO registerDTO);

    Boolean findPassword(FindPasswordDTO findPasswordDTO);
}
